package com.tensquare.notice.client;
/*
 *ClassName:ArticleClient
 *Description:通过feign调用文章微服务
 *@author:可爱的大鸭子
 */

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value="tensquare-article")
public interface ArticleClient {
    //根据文章id获取文章信息
    @RequestMapping(value = "/article/{articleId}", method = RequestMethod.GET)
    public Result findById(@PathVariable("articleId") String articleId);
}
